package com.adison.performancedemo.ui;

import com.adison.performancedemo.BaseActivity;
import com.adison.performancedemo.R;

import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.widget.ListView;

/**
 * Created by adison on 15/11/16.
 */
public class HierarchyActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_hierarchy);
        getWindow().setBackgroundDrawable(null);//移除Window默认的Background,过渡绘制优化
        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);
        setupListView();
    }

    private void setupListView() {
       ListView listView=(ListView)findViewById(R.id.hierarchy_lv);
        listView.setAdapter(new UIAdapter(this));
    }
}
